package core.utils;

public enum Property {
	FIRST_RUN("firstRun", "true", "Determines if it is the first time, application is run"),
	
	DB_URL("dbUrl", "jdbc:mysql://localhost:3306/defaultDatabase", "Database address"), 
	DB_USERNAME("dbUsername", "hibernate", "Database username"), 
	DB_PASSWORD("dbPassword", "hibernate", "Database password"),

	HBM2DDL_AUTO("hbm2ddl.auto", "update", "Spring database status (update - updates previous db state, create - drops previous db state)"), 
	SAMPLE_DATA("sampleData", "false", "Determines if sample data should be added to application instance"), 
	EMBEDDED("embedded", "false", "Determines if application should be using embedded database instead of MySQL one"),

	DEBUG_STATE("debugState", "false", "Determines if application is in debug state (if true - disables GUI validation, emulates Smart Card Reader");

	private String key;
	private String defaultValue;
	private String description;

	private Property(String key, String defaultValue, String description) {
		this.key = key;
		this.defaultValue = defaultValue;
		this.description = description;
	}

	public String getKey() {
		return key;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public String getDescription() {
		return description;
	}
}
